const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  name: state => state.user.userInfo.username, // 用户名
  staffPhoto: state => state.user.userInfo.staffPhoto, // 用户头像
  routes: state => state.permission.routes, // 获取路由对象数组
  roles: state => state.user.userInfo.roles // 获取当前账户拥有的权限对象
}
export default getters

